<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>zzzzzz</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<link type="text/css" rel="stylesheet" href="${ctx}/res/css/main.css" />
	<script type="text/javascript" src="${ctx}/res/js/jquery/jquery-1.6.1.min.js"></script>
	<script type="text/javascript">
		var jq = jQuery.noConflict();
	</script>
	<script type="text/javascript" src="${ctx}/res/js/main.js"></script>
	<script type="text/javascript" src="${ctx}/res/js/simple_tabsheet.js"></script>
</head>
<body>

<%
boolean isNewFeedsSelected = true;
boolean isInfoSelected = false;
boolean isFriendsSelected = false;
%>

<%@ include file="/WEB-INF/common/header.jsp" %>
<div id="user-profile" class="site-wrap wrap">
	<zzzzzz-ui:message key="msg_error_profile_not_found" type="error" />
	<c:if test="${profileOwnerBo != null}">
		<div class="content-wrap wrap">
			<div class="content-left-col">
				<div class="col-inner">
					<%@ include file="include/profile/profile_content_left.jsp" %>
				</div>
			</div>
			<div class="content-right-col">
				<div class="col-inner">
					<%@ include file="include/profile/profile_content_right.jsp" %>
				</div>
			</div>
		</div>
		<div class="sidebar">
			<%@ include file="include/profile/profile_sidebar.jsp" %>
		</div>
		
		<script type="text/javascript">
		
		var profile_tabSheet = new SimpleTabSheet({
			'j_tabsheet' : [
								{ 'j_tab' : jq('a[href$="#tab-profile-newfeeds"]'), 'j_tab_content' : jq('#tab-profile-newfeeds'), 'j_tab_dependency' : jq('a[href$="#tab-profile-newfeeds"]'), 'j_tab_selected_by_default' : <%=isNewFeedsSelected%> },
								{ 'j_tab' : jq('a[href$="#tab-profile-info"]'), 'j_tab_content' : jq('#tab-profile-info'), 'j_tab_dependency' : jq('a[href$="#tab-profile-info"]'), 'j_tab_selected_by_default' : <%=isInfoSelected%> },
								{ 'j_tab' : jq('a[href$="#tab-profile-friends"]'), 'j_tab_content' : jq('#tab-profile-friends'), 'j_tab_dependency' : jq('a[href$="#tab-profile-friends"]'), 'j_tab_selected_by_default' : <%=isFriendsSelected%> }
						   ]
		});
		
		var newfeeds_tabSheet = new SimpleTabSheet({
			'j_tabsheet' : [
				{ 'j_tab' : jq('a[href$="#tab-newfeeds-all"]'), 'j_tab_content' : jq('#tab-newfeeds-all'), 'j_tab_dependency' : jq('a[href$="#tab-newfeeds-all"]'), 'j_tab_selected_by_default' : true },
				{ 'j_tab' : jq('a[href$="#tab-newfeeds-me"]'), 'j_tab_content' : jq('#tab-newfeeds-me'), 'j_tab_dependency' : jq('a[href$="#tab-newfeeds-me"]'), 'j_tab_selected_by_default' : false }
			]
		}); 
		</script>
		
	</c:if>
</div>

<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>